package Job03;

public class FruitTest {
    public static void main(String[] args) {
        Fruit f1 = new Apple();
        f1.setName("苹果");
        f1.setArea("马龙");
        f1.setPrice(10);
        System.out.println(f1);

        Fruit f2 = new Peach();
        f2.setName("桃子");
        f2.setArea("北京");
        f2.setPrice(8);
        System.out.println(f2);


        Fruit f3 = new blueberry();
        f3.setName("蓝莓");
        f3.setArea("都乐");
        f3.setPrice(20);
        System.out.println(f3);
    }
}